<template>


  <div id="app">
     		

            <mt-header title="天上江湖预约助手">
              <router-link to="/login2" slot="left">返回登录</router-link>
            </mt-header>

      
    <!--<mt-button type="danger">danger</mt-button>-->
    <!--<div id="main"></div>-->
    <!--<img alt="Vue logo" src="./assets/logo.png">-->
    <!--<HelloWorld msg="Welcome to Your Vue.js App"/>-->
    <!--<div id="nav">
      <router-link to="/">主页</router-link> |
      <router-link to="/about">关于</router-link>
    </div>
    -->
    <router-view/>
  </div>
</template>

<script>
import HelloWorld from "./components/HelloWorld.vue";
import "whatwg-fetch";
export default {
  name: "app",
  components: {
    HelloWorld
  },
  mounted() {
    //this.getJson();
  },
  methods: {
    getJson() {
      var opts={method:"GET"}
      fetch("http://127.0.0.1:8088/get/2/aaa/123456",opts)
        .then(function(response) {
          return response.json();
        })
        .then(function(json) {
          alert(json.msg);
          //console.log("json", json);
        })
        .catch(function(ex) {
          //console.log("parsing failed", ex);
        });
    }
  }
};
</script>

<style>
.back{
   position:absolute;
  left:0px;
  top:0px;
}

#main {
  height: 200px;
  width: 100%;
}
#app {
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
#nav {
  padding: 30px;
}

#nav a {
  font-weight: bold;
  color: #2c3e50;
}

#nav a.router-link-exact-active {
  color: #42b983;
}
</style>
